<!DOCTYPE html>
<#assign dicSelect=JspTaglibs["http://www.casic304.cn/dicSelect"] />
<#assign secSelect=JspTaglibs["http://www.casic304.cn/secSelect"] />
<#assign fillDept=JspTaglibs["http://www.casic304.cn/fillDept"] />
<html>
<head>
    <meta charset="utf-8">
    <title>系统部署方式管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/forms/currencyCss.css">
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <#if isClose == 'true'>
        <style>
            .listBody .qbdms-bodyDiv{padding: 0 }
            body.qbdms-particulars .qbdms-bodyDiv div.layui-table-view-body{padding: 16px}
            .treeFormPreview{position: unset;}
        </style>
    </#if>
</head>
<body class="listBody qbdms-particulars">

<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body" >
        <#if isClose != 'true'><div class="qbdms-formTitle" style="border-bottom: 1px solid #E5F0FF">系统部署方式 <i class="qbdms-returnOn closeWindow">返回</i></div></#if>
        <form class="layui-form treeFormPreview"  requrl="${ctx}/qbdms/sysOrgDeploy/get"  lay-filter="wQbdDpaInfoDataForm">
            <div class="" style="width: 100%;overflow-x: auto">

                <table class="tableExcel qbdms-zeroTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr>
                        <td class="qbdms-zeroTable-lable">单位code<span style="color: red;">*</span></td>
                        <td name='orgCode'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">是否是上级<span style="color: red;">*</span></td>
                        <td name=''>
                            <select class="layui-input filter-value" name="isParent" lay-filter="xh" lay-verify="required" lay-search="" placeholder="请输入" >
                                <option value="0">否</option>
                                <option value="1">是</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">部署方式<span style="color: red;">*</span></td>
                        <td name=''>
                            <@dicSelect.dic name="depmethod" verify="required" reqtext="部署方式是必填项" filter="bsfs" nodeKey="bsfs" />
                        </td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">请求协议<span id="reqqqxy" class="qiehuanred" style="color: red;">*</span></td>
                        <td name=''>
                            <@dicSelect.dic name="protocol" verify="required" css="qiehuan"  reqtext="请求协议是必填项" nodeKey="qqxy" />
                        </td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">接口地址<span class="qiehuanred" style="color: red;">*</span></td>
                        <td name='ip'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">备注</td>
                        <td name='remarker'></td>
                    </tr>

                    </tbody>
                </table>

            </div>
            <input type="hidden" name="id" placeholder="请输入" autocomplete="off" class="layui-input "
                   maxlength="50" fieldname="id">
            <#if isClose != 'true'>
                <div class="layui-form-item btnformItem">
                    <p>
                        <button type="reset" id="closeWindow"
                                class="closeWindow layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">返回
                        </button>
                    </p>
                </div>
            </#if>
        </form>
    </div>
</div>


<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>

<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'common', 'laydate', 'jquery','propsHandle'], function () {
        var laydate = layui.laydate;
        var common = layui.common;
        var $ = layui.jquery;
        //关闭当前页面
        $(".closeWindow").click(function () {
            window.location.href = '${ctx}/qbdms/sysOrgDeploy/view/list';
        });

        var dw = eval('${dicList}'); //单位
        common.initDicData("orgCode", dw, "");

        var propsHandle = layui.propsHandle;
        var defProps = {
            //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
            viewMould: 'moulds/', // 组件模块 存放文件 *****
            selectorBtn: '.selectorBtn'
        };
        var temQuery = new propsHandle();  // 实例化模板功能部分
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });

        var index = parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name: 'wQbdDpaInfoDataForm',
            idValue: "${id}",
            primary: "id",
            updateCallback: function (data) {
                if (common.filterRecord(data)) {
                    if ($(".privateSubmit")) {
                        $(".privateSubmit").attr("disabled", false).css("pointer-events", "auto");
                    }
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'}, function (index) {
                        layer.close(index);
                        window.location.href ='${ctx}/qbdms/sysOrgDeploy/view/list';
                    });
                } else {
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'});
                }
                return false;
            }
            ,getCallback:function(data){
                // $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span>" +
                //     "<span class='qbdms-TBinformationText'>【"+data.data.filldept+"   | "+data.data.fillman+"  | "+data.data.filldate+"】</span>");

            }
        });


        $("body *").not("#closeWindow").attr("disabled","disabled");
        if ("${isClose}" == "true") {
            $('.closeWindow').hide();
        }

    });
</script>
</body>
</html>